package com.denlaku.longan.vo;

import com.denlaku.longan.core.Terminal;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author tianx
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Dashboard extends TenantBase {

    private static Map<String, Object> defaultAttr =  new LinkedHashMap<>();

    private String title;
    private String desc;
    private String tag;
    private String theme;
    /**
     * 终端类型
     * @see Terminal
     */
    private Terminal terminal;
    private Long tagId;
    private String tagName;
    private Map<String, Object> attr = defaultAttr;
    private Map<String, Object> style = defaultAttr;
    private List<Component> components;
}
